import { createApp } from 'vue'
import { createWebHashHistory, createRouter } from 'vue-router'
import App from './app.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import components from './components'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: '/', redirect: '/list' },
    { path: '/list', component: () => import('./pages/list.vue') },
    { path: '/index', component: () => import('./pages/index.vue') },
  ],
})

const app = createApp(App)
app.use(router)
app.use(ElementPlus, { size: 'small' })
app.use(components)
app.mount('#app')